<template>
  <div class="login">
    <Header :title="title" :icon="icon" :right="rightMsg" @back="back"></Header>
    <div class="main">
      <form action>
        <div>
          <input type="text" name="uname" placeholder="Email/手机号">
        </div>
        <div>
          <input type="password" name="upwd" placeholder="密码">
        </div>
      </form>
      <button>登录</button>
      <div class="bottom">
        <p>—— 或用第三方账号登录 ——</p>
        <ul>
          <li><div><i :class="qq"></i></div></li>
          <li><div><i :class="weibo"></i></div></li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
import Header from "./Header.vue";
export default {
  data() {
    return {
      title: "登录",
      icon: "icon-uniE079",
      rightMsg: "注册",
      qq:"icon-tux",
      weibo:"icon-sina-weibo"
    };
  },
  methods: {
    back(){
      this.$parent.bln2 = false;
    }
  },
  components: { Header }
};
</script>
<style scoped>
.login {
  background: #fff;
  height: 100%;
  width: 100%;
  position: absolute;
  bottom: 0;
  z-index: 999;
  height: 100%;
  flex-direction: column;
  position: relative;
}
.login .main{
  position: absolute;
  top: 0.88rem;
  width: 100%;
  bottom: 0;
}
header {
  height: 0.88rem;
  background: #000 !important;
  font-size: 18px;
  line-height: 0.88rem;
  color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 0 0.2rem;
}
span {
  position: absolute;
  left: 0.2rem;
}
.title1 {
  flex: 1;
  text-align: center;
}
.login .main {
  padding: 0.5rem;
}
.login .main form div {
  border-bottom: 1px solid #e6e6e6;
}
form {
  border: 1px solid #e6e6e6;
  display: block;
}
.login .main div input {
  width: 100%;
  height: 0.88rem;
  padding: 8px 14px;
  color: #323232;
  border: none;
  outline: none;
  font-size: 0.3rem;
}
.login button {
  background: #323232;
  margin-top: 0.3rem;
  border-radius: 4px;
  width: 100%;
  height: 0.8rem;
  border: none;
  color: #fff;
  font-size: .32rem;
}
.login .bottom{
  padding-top: .6rem;
  text-align: center;
}
.login .bottom ul{
  display: flex;
  justify-content: center;
}
.login .bottom ul li{
  padding-top: .3rem;
  padding-bottom: .3rem;
  color: #666;
  font-size: .22rem;
  list-style: none;
}
.login .bottom ul li div{
  border-radius: .6rem;
  height: 1.2rem;
  width: 1.2rem;
  margin: 0 2px;
  font-size: .56rem;
  text-align: center;
  line-height: 1.2rem;
  color: #fff;
}
.login .bottom ul li:first-child div{
  background:#30d0ff;
}
.login .bottom ul li:last-child div{
  background:#fe6258;
}
</style>
